function initComplete() {
    $("#scrollContent").css({
        overflowY: "hidden"
    }), $("#vTab").bind("actived", function(a, b) {
        initTree(b), jQuery.jCookie("leftvtabIdx", b.toString());
    }), showContent();
}

function showContent() {
    var b, a = jQuery.jCookie("leftvtabIdx");
    0 == a || "false" == a ? initTree(0) : (b = parseInt(a), $("#vTab").verticalTabSetIdx(b), 
    initTree(b));
}

function initTree(a) {
    treeData = getTreeData(a);
    var b = treeData.treeNodes;
    $.fn.zTree.init($("#treeDemo"), setting, b);
}

function onClick(a, b, c) {
    var d = $.fn.zTree.getZTreeObj("treeDemo");
    d.expandNode(c), null != c.url && (showProgressBar(), top.positionContent = c.getParentNode() ? uncompile(quiLanguage.position.title) + c.getParentNode().name + ">>" + c.name : uncompile(quiLanguage.position.title) + c.name, 
    top.positionType = "simple");
}

var treeData, setting = {
    callback: {
        onClick: onClick
    }
};